<?php
namespace App\Models;

use CodeIgniter\Model;

class SpongeBob extends Model{
    protected $origin = WRITEPATH . 'data/SpongeBob.csv';

    protected $keyField = 'id';
    protected $validationRules = [
    'name' => 'required|min_length[3]|max_length[255]',
    'description' => 'required',
    'image' => 'required',
    // id,name,description,image,team,position,specialty,favorite_activity
];
protected $table = 'characters'; 
 
protected $allowedFields = ['name', 'description', 'team','position','specialty','favorite_activity','image']; 
    
}
